package com.cloud.adrian.novel.book.dto.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 小说排行榜 响应dto
 * @Author: xiangguiliang
 * @version: 1.0
 * @since: 2024/05/21
 */
@Data
@Builder
public class BookRankRespDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "小说id")
    private Long id;

    @Schema(description = "类别id")
    private Long categoryId;

    @Schema(description = "类别名")
    private String categoryName;

    @Schema(description = "小说封面地址")
    private String picUrl;

    @Schema(description = "小说名")
    private String bookName;

    @Schema(description = "小说作者")
    private String authorName;

    @Schema(description = "小说简介")
    private String bookDesc;

    @Schema(description = "总字数")
    private Integer wordCount;

    @Schema(description = "最新章节名")
    private String lastChapterName;

    @Schema(description = "最新章节更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime lastChapterUpdateTime;
}
